import axios from '@/request.js'

export function getList() {
    return axios.get("/category");
}


export function create(data) {
    return axios.post("/category/create",data);
}

export function update(id,data) {
    return axios.post(`/category/edit/id/${id}`, data);
}

export function del(id) {
    return axios.post("/category/delete", id);
}